package org.example.all;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.TypeElement;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;

public class ByteTest extends AbstractProcessor {
    public static void main(String[] args) {
        JSONObject object = new JSONObject();
        object.put("messageId",40);
        System.out.println(object.toString());
        System.out.println(Arrays.toString(object.toString().getBytes(StandardCharsets.UTF_8)));

        JSONObject object1 = new JSONObject();
        object1.put("messageId","40");
        System.out.println(object1.toString());
        System.out.println(Arrays.toString(object1.toString().getBytes(StandardCharsets.UTF_8)));
    }

    @Override
    public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
        return false;
    }
}
